package com.gengine.modules
{
	import com.gengine.core.*;
	import com.gengine.utils.pools.*;
	import flash.events.*;
	import flash.system.*;
	import flash.utils.*;
	
	public class ModuleManager
	{
		private var _modulesMap:Dictionary;
		private var _moduleList:Array;
		private var _tempModuleInfo:ModuleInfo;
		private var _isloading:Boolean = false;
		
		public function ModuleManager()
		{
			this._modulesMap = new Dictionary();
			this._moduleList = new Array();
		}
		
		public function loadModuleInfo(param1:Array) : void
		{
			var _loc_2:ModuleInfo = null;
			var _loc_3:int = 0;
			while (_loc_3 < param1.length)
			{
				
				_loc_2 = param1[_loc_3] as ModuleInfo;
				this._modulesMap[_loc_2.url] = _loc_2;
				_loc_3++;
			}
			
		}
		
		private static var _instance:ModuleManager;
		public static function get instance() : ModuleManager
		{
			if (_instance == null)
			{
				_instance = new ModuleManager;
			}
			return _instance;
		}
	}
}